update store() to return value - useful for setting a var and storing a value in one line