set dtype as above