handle multiple attributes in one has correctly