better blend function for line smooth