change two parameters in cycle