changed the global variablws