should be optimized to just use count == 0
should be optimized to just use count == 0