update function gc items