get totalcost on queue
set totalcost to zero
add test that would've caught the last problem