added ability to sign arrays