changed names of attr to avoid collisions