added some fuctions