provinces array added, matrix magic added