modify for ctf