add logarithmic spiral + refactoring