added some function for later use