add Cory's code for debugging