move utility function