add reference to set to validation function