fixed coding style to pass golint