added add method that returns id