prepare moves query event and custom time event