added flagged to observations model