fixed my errors because I am a bad programmer