if statement with else works now