improved algopt