hopefully fixed compile warnings