.ldb_history is constant, remove quit variable, move line var closer to usage