refactor to go generator