some refatoring to the dotLineNet