fixed function formatting