add helper functions.