add logic utility