passing input around