checking with else as well