struct and parameter parsing complete