add algorithm basing on paragraph length