fixed items count issue
began to write variants adding function