basis functions finished!!!