changed length to size