taking derivartives added