added a messages method