added code to handle multiple appointment day preferences