trying to add optimize