some helpers.