oops, bad copy-pasta
extract some duplication