endpoint array assignment fix