moved attribute initialization to .json