credit attempt, some errors still
credit working successfully, debug prints commented out