added else clause