almost near the end.
added some additional functions.