minor bug fix - messed up rename of value -> val