function execution while serializing page data