changes messages in search function