changed the structure. started breaking down the rough code