add algorithm style