added some functions