removed testing function