dm method is working