created algorithm