changed export to module.exports