added clearPathLines method