added concurrency to resizing