updated dmi's position determining logic