resize function
bumb
re-add resize