when using setLength need to add lines length