add profit index as value to maximize