refactored mpa_graph and mpa to use data.frame instead of env() to make accessing its variables sleeker