working for MS OS compatibility