filled in missing function for finding blocks