change made type to instance of RetType