almost working, but need to consider system counts