cactus initialization