adding strndup