simplifying dependencies and learning about scope