made some changes to the expanded basis class. It was wrong.