updated function calls and added hints