fix for add method