renamed a method.
fixed compilation in debug mode.