added resize feature