added some functions

added some functions