update utility function