restructuring + sorting and linear regr. notebooks