remove having to create imphi, donor, acceptor arrays in a second loop