added parameters for add method