recording log to see what is happening