added euler cycle