no anonymous functions for serialisation.