halfway to implementing checking code