added most of m file and having a problem with dequeue