added else snippet