add log and delete debug