function to generate refined data is ready