fix for bugs. decrement