corrected secret initialization