refactor a bit
no quarter 0