use printf, change wrap to cycle