use int replace void for dao