added cite to paulund who saved me a bunch of time