remove tertiary operator