pass iteration function in to netbsd