messed with matlab some more, all scripts do good work now