correct syntax error

elif rather than else if