checking variable types