removed printlns used for debugging.