style changes on matrix