removed dupe function (bad merge)