[NEW] moved the begin and end from list iterator to list