killed the constatnt resize function