PCT-1085 useRe moved outside the func