fix find func