added inputs and outputs for motors