by using a differential method