connection between two elements first approach