pass get functions as records