to avoid errors in mac