simulation form function formatting cleanup