working on gdc w/two inputs, code is currently sloppy.