fixed some errors I was getting