fixed warnings generated with -Wall -Wextra -pedantic