Special conditions to simplify a function