improvement setActive