added else statment