preparing helper stuff