add allLocation and constants