slight update. removed unneccessary variable