removed setType from dao