basic functions realized det...