box counting working fine