renamed variable check from location to settings