fixed a bug, removed a log output