Removed a loop from creation algotrithms