getDip method added in Utils