properly showing errors