fixed bug w/ secrets method