made methods static and removed debugging statement