remove unnecessary spec variable