fixing error definitions