reformat code

This doesn't have any functional change, I just format the code using
eclipse's code formatter