added boolean "found" in modifyAttributes