mod logic utility