remove log and fix indentation