gem
in progress of putting in the vector calcs