resursive printing