fixed some errors I made