Inclusion Criteria:I) patients  a. Inclusion criteria:  Suicidal attempters, suicidal ideators, non-suicidal depressed were all diagnosed with major depression, or Bipolar disorder (BD) (depressive phase) by statistical manual of mental disorders. Patients meeting DSM-5 criteria. (APA-2013) all participant provided written informed consent age group above 18 years old II) control a. Inclusion criteria:  1. Match with the subjects in age group "above 18 years old" 2.no history of suicide attempt or ideation 3. no history of psychiatric disorder  Exclusion Criteria:  other psychiatric disorders electroconvulsive therapy in the Previous six months Neurologic disorders including stroke, epilepsy, brain injury and sensory disorders that precluded participating in cognitive assessment.