added type checking to Call node