fixed some of the errors caused by me