resize function now works