unused var warning in constructors