remove trackevent function declaration