renamed some utility functions