define generic functions to appease the compiler