tested apply_prefix