added a couple of helpers