remove unnecessary activate code