removed log calls