fixes errors