optimize WPL