move dmethod to utils class
moved to common utils class