added head and message to wait