fixed warnings you get when compiling with -Wall