removed unecessary global