removed log code