added functions for commonly used stuff