passing variable for custome messages