use integer to check several types