it worked! commenting out some debug code to verify it still works