matching masites table to original position