fix function style