changing element to be logged