rewriting next.go