added some helpers methods