fixed return value for int and string