removed unnecessary methods (collect & changeToNum) from routes/api.js