Simplify msg function. Typo fix.