made elsif back to if, had changed it while debugging