modified function substract
sumergintas