refactors where_to_reanimate to use min and max notation so it is  little more readable