simple implementation of find