changed items to itemfuncs in output