fnc final- functions completed