updating receipt functionality and fixing a bug if found (an if not actually doing anything)