how to implement decrease quarry

how to implement decrease quarry