removed pvectorize from collate
re-added missing parenthesis