removed else without previous if