added else statements