unnecessary elses were deleted
small fix