fixed old function prereqcolor