added some fucntions