express constant reading from stack in a more idiomatic way