create and hook stub function for compressing fields.