if else got all screwy