added back a method for debugging purposes