add a check address function