fixed warnings when compiling