change api for message