master: a-0 use constants instead of recalculating