making compatible with mac os x