cleaned up text, removed unused code