mcarper optimzations