removed some extraneous debug() calls