added cycling fill on matrix fill