replace queue of strings with queue of structs