fixed some code and errors