typing for messages