updated for browser