deleted obsolete if compiler code