zero pop and more complex mark calc algorithm