select ancestors improvements