fixed using attributes
fixed for rename to attributes
added get values in range function