poicv2, finished with logic errors