lonely "$" made error in line 8