wei dai: R flash card final