Jeff,
thank you for the time and suggestion.I'm also trying to use SETOF custom_type as a solution
Oksana