tweaks util function.