some progress; now saving also a vector. two ways available, only one working