comparing different types