added a couple of usefull methods