load curve logic made