made a start with altering globals