pulled functions from results and modified to fit member page needs, testing to be done still