pairing and closures