redundant code block