removing unneeded else branch