added mx to the output data frame