removed redundant secret key argument