was redeclaring ret when I intended to assign to existing ret