removed unused debugging function