added structure for backbone and corrected tree troubleshooted devise