having to refactor code I wrote three months ago