change the shrink method - using vector