extraction of inputs is working