use right type of message