fixed the curly bracket error