added recursive function just to see how that works