trying to fix a bug with subtract