added some more functions.