started messaging function