updated add method to only take values