fixing code for turbomedusa