getValue and getValues functions