you have to define i parameter