added a few more utility functions