add the function of prepare the hs300 matrix