added drawing line func