switched to using line handles instead of line numbers