add functions for convenience