added condition for auto width wrap