updated formatting using golint