resized list and changed flag position