solve err name not resolved error