added warning in add person function