use labels instead of indexes