changed it to else if but it didn't work the way i wanted it to