removed unneccessary global lines