added protected method to set protected integer array