added size queue and dist queue
size works now