added some small functions