checking that collect is not modifying data, removed repeated subject declaration