fix helper method syntax