this was a pain in the ass.