correctly get the values