extract code to rang.go