solved mac compatibility