fixed input.nn referance.