searching through the entire file