changes attribute names to use underscore