do update to prevent multiple enter