adding back end functionality for purchases