use queue for adding boxes