removed uneeded extra lines of code