Use constants instead of some varibales