added setup of input