addition of some helper functions to detail