added Logs,when it is needed