rename helper function for clarification
remove unneeded STRDUP