minor simplification suggested by golint