decrement mine function.