done on implement security_code for agency