changed way it looks up label in array