Made pmacthedid into array