added center checking script