 result compute common prefix result 
