only change attributes in load function