converted string param to struct