correct indentation and removes some missed logging