added another set condition for attribute magic