drawing lines for multiple groups