add line rules