- added debugging function