changed value classes for returning an integer