implemented connecting parallogram by line