added several utility functions.