Please fix indenting. Refer to Spark style guide
https://cwiki.apache.org/confluence/display/SPARK/Spark+Code+Style+Guide