added left-down algo