trying to get if else if to work