use elseif to make code more readable