functions added modified to all for the testing of functions