fixed -= in add function