fix returned object type