got rid of extra ] in line 38, accidently input during cleaning up of code