setting up preferences