change the form of this to make it easier to debug