reverse conditional calculations