ensuring variables match