updating function file for assignment