fix pre-integration