castle secret use function