refactor reciepts