ugh, a hoisting issue, really. yuck