add in if statement checkout on every case