change "gehtWidth" with displaymetrics and remove comments