added secret, changed index