added resize api