err name not resolved error