fixed silly binding of unnecessary variables to the scope. for shame, solo. for shame