added some more utility functions