splice (@{$vips{$k}{'stack'}},0,$#{$vips{$k}{'stack'}}-50) if ($#{$vips{$k}{'stack'}}>50);