added negative brackets functionality