updating type of calledElement