bug fix: updating function call