added find uniform function