use constants instead of preferences