add the function to get the optimized users