remove unused var, fix output on OSX