changed log to debug