using require correctly