refratoring of snakehead pattern for future doubling