some modification on xchart