removed chk_prefix function- not necessary.