modified the funtions file