functions 36-65 first version are almost done, just a few left to implement