added extra debugging function