added polybori optimization