changed message into an interface