move utility functions