adds check for failure
fixes method call
adds unnecessary initialization