abstracted checkX functions