change logic on load