making it more go-idiomatic