fix to update helper function