added resize lib