condensing my code into smaller files