working on variables and forloops