got recussion working by manually copping values