modfying code patterns