added update direct line function