added type to message