addFirst and removeFirst modified