implemented a small cycle :)