refactored past purchases