range works on objects