fixed shrink funciton