simplify code for Runnable implementations