Added enso and fixed a bug in logic