review flagging function done