modif onMessage