Note to self: do not write code late at night