made "add" function