Put the elsifs in the same lines as the brackets, as you do in the rest of the code.