double pointers for queue
adding files