refactored the arrRepresentation