moved some stuff to dtypes