some warning changes to make visual studio happy