receipt main prog