add log for debug