change attr scope