update to match function