define mode for flatline to toggle