squeeze last dim if len 1