second if statment is working, only written for 10 so far