allow function to return message