test message: d
restructuring logic so that all variables get set right up front