remove duplicate activate function causing fatal error