trying to solve dataset extending problems - still not working right