code tidy and indentation for github.