removed some debug messages for performance reasons