tweaks to utility functions