use mixed instead of ?type