calculating IDMs now