using resize