code added for 2 functions + remarks