Update eat function