pull out some common variables