remove extra 'if' block