determining conditions to differentiate message? types