messed up scope :(