fixed return type of values() function