added messages for search function