adding some api calls for resizing