pulling out helpers and block
modularizing marked