find by condition instead of id