worked on two add functions