added removeFront function