few more functionalities added to functions.c