changed to simple optimization instead of advanced