change length to size(,1)