fixed the errors