polished finding fxn!!!
dammit Haoxin stop conflicting stuff