not using the recursive function to save to models