added functionality to resize, partially