remove debug log and unused method