fixed extra lines of code