added l =1 r =2 case