manage indentation and parent