add sed method for the difference in mac