Foundation matching