multi direction working for each individual line