implement clear and modulous operator