modify elements when they are available