abstracted out check location