fixing the assignment of function call, kind of