use constant to fix initial problem bug