refactored simple_qr_code