basic simplification of variables