removed warnings with -Wextra