reset is working with hight and width