need some work on preferences