tested libraries in windows and changed code accordingly