use the string pointer instand of string