start of find functionality