added forward function to the circuit