add a couple of functions

added a couple of functions