update logic for express