adding some debugging to see why this isn't working