updated function comment