flag returning