corrected auto ideal resize
added mLastAdded