complete but inaccurate code