edit resize functions