added random box generator