testing recursive function