added helperFunc