removed last remaining warning by turning the constant into a static variable