fixed the stripe function