q_2d_inverse function added