add checking variable type