added the storing of values