replace removeRange by remove in past.dart