fixed up scope thing