added secret key back in