trying to get checking code to work