extract the common variable
add plus/subtract for length