recursive record for list runs correctly