fixing error msgs