get types correct