fixed error for microsoft compilers