cleanup internal values from records