change to spark code style