added difference matrix