adds decrement solution by alexandrus