changed the way tooltip message generated