simple optimize.