matched for-do statement, now working on conditions