initial implementation for find