removed bad code from routes