duplicate code blocks