worked on program loop, ran into issue with simulator, not sure if working...