cleaned variable use for msg