variable wasn't working as expected. switch things around a bit, should
work.