replace 'else if' with 'elif'