fixed errors in add methods