commented receipt function