small changes in im2nd