minor changes, attendance works