else statements added

else statements added