hmm...fixing syntax error. elseif-> elsif