started working on program layout; rewrite desired