fix range bug & add constraint for pants