added mass assignment to flagging class