changed attr passes from single to hash