debug code revisions attempt 2