added some new functions in file .functions