updated repo add method