replace functions if already exist