fix formatting
fixed preference store