this was a headache

but it got done