add some helpers func