start of helpers