removed obsolete if condition