load logic optimize