go fmt
finished helper function