removed the log code