added attribute replaceing