copying new logic to next similar code block