first attempt at using hardware input