fixes function formatting

didn't change any of code, just reformatted it nicer