added function getValues