reformat long functions