added msg variable