added getH & getW methods