modify messages in search function