unexpected errors fixed