get types right