filled out some more utility functions