bug fix should not directly call getvalues