removed unneccessary variables