unused var and formatting