fixed some minus signs