Check arguement in instantiate function