move im_identity*() to a class