add function of normalize the line
add indexing to tables