move groups in front of connections