changed main so responsive to input