finished function for returning mapping to priors.. might want to change function names