updated mechanism of setting prefix