getMessages prototype #1