removed temporary debug function