introduced functions for line connections