make sure when every line is ready