changed messages to use references instead of pointers -> made more comfortable syntax